/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.model;

import java.io.Serializable;

/**
 * 基础数据库可序列化(缓存)模型
 * 
 * @author CSJ (email:raulcsj@163.com)
 * @since 2012-11-10
 */
public class BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    // 统一主键名称
    private transient String id = "";
    // 对应iBatis dao操作语句id
    private transient String statmentId = "";

    // 是否分页
    private transient boolean paging = true;

    // 分页参数
    private transient int page = 0;
    private transient int start = 0;
    private transient int limit = 0;
    private transient int totalCount = 0;

    // 排序
    protected transient Object sidx;// 列序号或列名
    protected transient Object sord;// 排序方式asc|desc

    public String getStatmentId() {
        return statmentId;
    }

    public void setStatmentId(String statmentId) {
        this.statmentId = statmentId;
    }

    public boolean isPaging() {
        return paging;
    }

    public void setPaging(boolean paging) {
        this.paging = paging;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public Object getSidx() {
        return sidx;
    }

    public void setSidx(Object sidx) {
        this.sidx = sidx;
    }

    public Object getSord() {
        return sord;
    }

    public void setSord(Object sord) {
        this.sord = sord;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
